package com.lcy.demo.aop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 创建时间：2017/4/14 16:11
 *
 * @author 娄存银
 * @version 1.0
 */

public class Application {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("aop.xml");
        HelloService service = context.getBean(HelloService.class);
        service.sayHello();
    }
}
